package liu;

/**
 * Created by mc on 2016/7/26.
 */
class Some{
    void doService() {
        System.out.println("some service");
    }
}
class Other extends Some{
    @Override
    void doService(){
        System.out.println("other service");

    }
}
public class yi
{
    public static void main(String[] arge)
    {
        Other other = new Other();
        other.doService();
    }
}
